﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Cms" >
	<class name="StatisticSession" table="statisticsessions" lazy="false" dynamic-insert="true" dynamic-update="true">

		<id name="ID" column="statisticsessionid" type="Int32">
			<generator class="native" />
		</id>
		<timestamp name="RowStamp" column="rowstamp" />

		<property name="SessionKey" column="sessionkey" length="255" />
		<property name="IpAddress" column="ipaddress" length="15" />
		
		<many-to-one name="Visitor" column="statisticvisitorid" class="StatisticVisitor" cascade="all-delete-orphan" />
		<many-to-one name="Useragent" column="statisticuseragentid" class="StatisticUseragent" cascade="all-delete-orphan" />
		<many-to-one name="OperatingSystem" column="statisticoperatingsystemid" class="StatisticOperatingSystem" cascade="all-delete-orphan" />

	</class>
</hibernate-mapping>
